<!--
 * @Author: Wang Yang
 * @Date: 2021-06-01 17:14:58
 * @LastEditors: Wang Yang
 * @LastEditTime: 2021-06-02 15:08:04
 * @Description: file content
-->
<template>
  <div>
    <van-button type="primary" @click="toast">123</van-button>
  </div>
</template>

<script>
import { getImgCode } from '@/api/index';

export default {
  setup() {
    getImgCode();
  },
  methods: {
    toast() {
      const a = 1;
      console.log(a);
      this.$toast('提示文案');
    },
  },
};
</script>

<style lang="less" scoped></style>
